package com.qingcloud.wcenter.api;

import com.qingcloud.wcenter.model.TablePageDTO;
import com.qingcloud.wcenter.model.edata.dto.EquipmentBaseDataDTO;
import com.qingcloud.wcenter.model.edata.params.EquipmentDataParams;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "equipment-data-api", url = "${healthy.data-url}")
public interface EquipmentDataApi {

    /**
     * 设备数据分页查询
     */
    @PostMapping(value = "/edata/page")
    public TablePageDTO<EquipmentBaseDataDTO> page(@RequestBody EquipmentDataParams equipmentDataParams);

}
